package com.jhclothing.inbound.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jhclothing.common.annotation.Excel;
import com.jhclothing.common.annotation.Excels;
import com.jhclothing.common.core.domain.BaseEntity;
import com.jhclothing.product.domain.Fabric;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 布料入库对象 fabric_inbound
 * 
 * @author zyp
 * @date 2024-04-25
 */
public class FabricInbound extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long inboundId;

    /** 入库单号 */
    @Excel(name = "入库单号", sort=1)
    private String inboundOrderNum;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd", sort=4)
    private Date inboundTime;

    /** 入库数量（单位：平方米） */
    @Excel(name = "入库数量(单位：平方米)", width=30, sort=5)
    private BigDecimal inboundNum;

    /** 关联布料表ID */
    private Long fabricId;

    /** 关联布料信息 */
    @Excels({
            @Excel(name = "布料编码", targetAttr = "fabricCode", type = Excel.Type.EXPORT, sort=2),
            @Excel(name = "布料名称", targetAttr = "fabricName", type = Excel.Type.EXPORT, sort=3),
    })
    private Fabric fabric;

    /**
     * 查询条件：布料编码
     */
    private String fabricCode;

    public void setInboundId(Long inboundId)
    {
        this.inboundId = inboundId;
    }

    public Long getInboundId()
    {
        return inboundId;
    }
    public void setInboundOrderNum(String inboundOrderNum)
    {
        this.inboundOrderNum = inboundOrderNum;
    }

    public String getInboundOrderNum()
    {
        return inboundOrderNum;
    }
    public void setInboundTime(Date inboundTime)
    {
        this.inboundTime = inboundTime;
    }

    public Date getInboundTime()
    {
        return inboundTime;
    }
    public void setInboundNum(BigDecimal inboundNum)
    {
        this.inboundNum = inboundNum;
    }

    public BigDecimal getInboundNum()
    {
        return inboundNum;
    }
    public void setFabricId(Long fabricId) 
    {
        this.fabricId = fabricId;
    }

    public Long getFabricId() 
    {
        return fabricId;
    }

    public Fabric getFabric() {
        return fabric;
    }

    public void setFabric(Fabric fabric) {
        this.fabric = fabric;
    }

    public String getFabricCode() {
        return fabricCode;
    }

    public void setFabricCode(String fabricCode) {
        this.fabricCode = fabricCode;
    }
}
